<?php
date_default_timezone_set("Asia/Shanghai");
/* PLEASE DO NOT ALLOW EVEN ONE BLANK SPACE/LINE IN THIS FILE OUTSIDE '<?php' AND '?>' */

$salt='9g05mobgcfkb7vqd';                          // Salt. A salt consists of random chars used as one of the inputs of a one-way function (MD5 hash). DO NOT CHANGE!


/* ------ BLAB! DATABASE SETTINGS ------  */

$dbss=array();
$dbss['type']='mysqli';                  // Database type, *lowercase* (options: mysql, mysqli, postgre, sqlite, pdo_sqlite)
$dbss['host']='localhost';                  // Database host (in most cases 'localhost', on Windows systems - use '127.0.0.1' instead of 'localhost' to avoid a php/ipv6 bug)
$dbss['user']='root';                  // Database user (not used with sqlite)
$dbss['pass']='usbw';                  // Database password  (not used with sqlite)
$dbss['name']='test';                  // Database name [mysql, postgre]. Note that the installation script cannot create a database for you!
$dbss['prfx']='blab8';                  // Table prefix for BLAB! tables, default 'blab8'
$dbss['sqlt']='';                  // Database file [sqlite only]: 'path/filename', a file CHMODed to 777 in a dir that is CHMODed to 777
$dbss['sqlp']=0;                   // SQLITE only: PRAGMA synchronous; options: 0|1|2; 0 = OFF /fastest/; 1= NORMAL; 2 = FULL /slowest/
$dbss['pcon']=0;                   // [0 or 1] Establishes a persistent connection to the SQL server. If you are not sure leave it 0.

$dbss['db_port'] = 6606;
if( defined('SAE_APPNAME') )
{
	$dbss['host']= SAE_MYSQL_HOST_M;
	//$dbss['db_host_read'] = SAE_MYSQL_HOST_S;	
	$dbss['db_port'] = SAE_MYSQL_PORT;
	
	$dbss['user'] = SAE_MYSQL_USER;
	$dbss['pass'] = SAE_MYSQL_PASS;
	$dbss['name'] = SAE_MYSQL_DB;
}

/* ------- ADDITIONAL SETTINGS ------- */


$error_log='errors.txt';           // CHMODed to 777 file to store sql errors if any ( it is recommended to rename this file )
$latest_mssg=20;                   // Messages to display when users enter the chat, recommended value: 5-50.
$bwords=array('fuck','bitch');     // Bad words array: $bwords=array('fuck','bitch','etc');  $bwords=0; -> off. Turn it off to save CPU resources. 
$topic='/topic';                   // Topic. If found, the posted text appears with larger letters and clears the screen.
$paint_prefix='p';                 // Paint prefix. Mind that it's to be set in "preg_replace" function. To be safe use letters only.
$anonymto=0;                       // Links are converted to anonym.to links [0 or 1]

?>